local extension = Package:new("new_heg_ld")
extension.extensionName = "new_heg"

extension.game_modes_whitelist = {"zhonger_heg_mode","warlords_heg_mode","jin_heg_mode","variation_heg_mode", "tang_heg_mode"}

local H = require "packages.ol_hegemony.util"

extension:loadSkillSkelsByPath("./packages/new_heg/pkg/ld/skills")

Fk:loadTranslationTable{
    ["new_heg_ld"] = "君临天下",
    ["zhen_heg"] = "君临·阵",
    ["shi_heg"]  = "君临·势",
    ["bian_heg"] = "君临·变",
    ["quan_heg"] = "君临·权",
    ["lord_heg"] = "君主武将",
    ["heg_transform_general"] = "<b>变更副将</b>：每局游戏限一次，从武将牌堆中亮出三张与玩家势力相同的武将牌。玩家选择一张武将牌作为新的副将 (若原先有副将，将副将的原武将牌置入武将牌堆)",
}

local dengai = General:new(extension, "zhen_heg__dengai", "wei", 4)
dengai:addSkills { "ld__tuntian", "ld__jixi", "ziliang" }
dengai.mainMaxHpAdjustedValue = -1
Fk:loadTranslationTable{
    ["zhen_heg__dengai"] = "邓艾",
    ["#zhen_heg__dengai"] = "矫然的壮士",
    ["designer:zhen_heg__dengai"] = "官方",
    ["illustrator:zhen_heg__dengai"] = "Amo",

    ["~zhen_heg__dengai"] = "君不知臣，臣不知君。罢了……罢了！",
}

local caohong = General:new(extension, "zhen_heg__caohong", "wei", 4)
caohong:addCompanions("st_heg__caoren")
caohong:addSkills{ "new_ld__huyuan","ld__heyi" }
caohong:addRelatedSkill("ld__feiying")
Fk:loadTranslationTable{
    ["zhen_heg__caohong"] = "曹洪",
    ["#zhen_heg__caohong"] = "魏之福将",
    ["designer:zhen_heg__caohong"] = "官方",
    ["illustrator:zhen_heg__caohong"] = "官方",

    ["~zhen_heg__caohong"] = "福兮祸所伏……",
}

local jiangwei = General:new(extension, "zhen_heg__jiangwei", "shu", 4)
jiangwei.deputyMaxHpAdjustedValue = -1
jiangwei:addCompanions("st_heg__zhugeliang")
jiangwei:addSkills{ "tiaoxin","tianfu", "yizhi"}
jiangwei:addRelatedSkills{ "ld__guanxing","ld__kanpo" }
Fk:loadTranslationTable{
    ["zhen_heg__jiangwei"] = "姜维",
    ["#zhen_heg__jiangwei"] = "龙的衣钵",
    ["designer:zhen_heg__jiangwei"] = "官方",

    ["$tiaoxin_zhen_heg__jiangwei1"] = "小小娃娃，乳臭未干。",
    ["$tiaoxin_zhen_heg__jiangwei2"] = "快滚回去，叫你主将出来！",
    ["~zhen_heg__jiangwei"] = "臣等正欲死战，陛下何故先降……",
}

local jiangfei = General:new(extension, "zhen_heg__jiangwanfeiyi", "shu", 3)
jiangfei:addCompanions("st_heg__zhugeliang")
jiangfei:addSkills{ "ld__shengxi","shoucheng" }
Fk:loadTranslationTable{
  ["zhen_heg__jiangwanfeiyi"] = "蒋琬费祎",
  ["#zhen_heg__jiangwanfeiyi"] = "社稷股肱",
  ["designer:zhen_heg__jiangwanfeiyi"] = "淬毒",
  ["illustrator:zhen_heg__jiangwanfeiyi"] = "cometrue",

  ["~zhen_heg__jiangwanfeiyi"] = "墨守成规，终为其害啊……",
}

local xusheng = General:new(extension, "zhen_heg__xusheng", "wu", 4)
xusheng:addCompanions("st_heg__dingfeng")
xusheng:addSkills{ "ld__yicheng" }
Fk:loadTranslationTable{
    ["zhen_heg__xusheng"] = "徐盛",
    ["#zhen_heg__xusheng"] = "江东的铁壁",
    ["designer:zhen_heg__xusheng"] = "淬毒",
    ["illustrator:zhen_heg__xusheng"] = "天信",

    ["~zhen_heg__xusheng"] = "可怜一身胆略，尽随一抔黄土……",
}

local jiangqin = General:new(extension, "zhen_heg__jiangqin", "wu", 4)
jiangqin:addCompanions("st_heg__zhoutai")
jiangqin:addSkills{ "ld__shangyi", "niaoxiang" }
Fk:loadTranslationTable{
    ["zhen_heg__jiangqin"] = "蒋钦",
    ["#zhen_heg__jiangqin"] = "祁奚之器",
    ["designer:zhen_heg__jiangqin"] = "淬毒",
    ["illustrator:zhen_heg__jiangqin"] = "天空之城",
    ["cv:zhen_heg__jiangqin"] = "小六",

    ["~zhen_heg__jiangqin"] = "竟破我阵法...",
}

General:new(extension, "zhen_heg__yuji", "qun", 3):addSkills{ "qianhuan" }
Fk:loadTranslationTable{
    ["zhen_heg__yuji"] = "于吉",
    ["#zhen_heg__yuji"] = "魂绕左右",
    ["designer:zhen_heg__yuji"] = "淬毒",
    ["illustrator:zhen_heg__yuji"] = "G.G.G.",

    ["~zhen_heg__yuji"] = "幻化之物，终是算不得真呐。",
}

General:new(extension, "zhen_heg__hetaihou", "qun", 3, 3, General.Female):addSkills{ "zhendu","qiluan" }
Fk:loadTranslationTable{
    ["zhen_heg__hetaihou"] = "何太后",
    ["#zhen_heg__hetaihou"] = "弄权之蛇蝎",
    ["cv:zhen_heg__hetaihou"] = "水原",
    ["illustrator:zhen_heg__hetaihou"] = "KayaK&木美人",
    ["designer:zhen_heg__hetaihou"] = "淬毒",

    ["~zhen_heg__hetaihou"] = "你们男人造的孽，非要说什么红颜祸水……",
}

local lidian = General:new(extension, "shi_heg__lidian", "wei", 3)
lidian:addCompanions("st_heg__yuejin")
lidian:addSkills{ "xunxun","wangxi" }
Fk:loadTranslationTable{
    ["shi_heg__lidian"] = "李典",
    ["#shi_heg__lidian"] = "深明大义",
    ["designer:shi_heg__lidian"] = "KayaK",
    ["illustrator:shi_heg__lidian"] = "张帅",

    ["~shi_heg__lidian"] = "报国杀敌，虽死犹荣……",
}

local zangba = General:new(extension, "shi_heg__zangba", "wei", 4)
zangba:addCompanions("st_heg__zhangliao")
zangba:addSkills{ "ld__hengjiang" }
Fk:loadTranslationTable{
    ["shi_heg__zangba"] = "臧霸",
    ["#shi_heg__zangba"] = "节度青徐",
    ["illustrator:shi_heg__zangba"] = "HOOO",

    ["~shi_heg__zangba"] = '断刃沉江，负主重托……',
}

local madai = General:new(extension, "shi_heg__madai", "shu", 4)
madai:addCompanions("st_heg__machao")
madai:addSkills{ "heg_madai__mashu","re__qianxi",}
Fk:loadTranslationTable{
  ["shi_heg__madai"] = "马岱",
  ["#shi_heg__madai"] = "临危受命",
  ["designer:shi_heg__madai"] = "官方",
  ["illustrator:shi_heg__madai"] = "Thinking",

  ["~shi_heg__madai"] = "我怎么会死在这里……",
}

local mifuren = General:new(extension, "shi_heg__mifuren", "shu", 3, 3, General.Female)
mifuren:addSkills{ "guixiu","cunsi"}
mifuren:addRelatedSkills{ "yongjue" }
Fk:loadTranslationTable{
    ["shi_heg__mifuren"] = "糜夫人",
    ["#shi_heg__mifuren"] = "乱世沉香",
    ["designer:shi_heg__mifuren"] = "淬毒",
    ["illustrator:shi_heg__mifuren"] = "木美人",

    ["~shi_heg__mifuren"] = "阿斗被救，妾身再无牵挂…",
}

local sunce = General:new(extension, "shi_heg__sunce", "wu", 4)
sunce.deputyMaxHpAdjustedValue = -1
sunce:addCompanions{ "st_heg__zhouyu", "st_heg__taishici", "st_heg__daqiao" }
sunce:addSkills{ "jiang","yingyang","hunshang" }
sunce:addRelatedSkills{"heg_sunce__yingzi","heg_sunce__yinghun"}
Fk:loadTranslationTable{
    ["shi_heg__sunce"] = "孙策",
    ["#shi_heg__sunce"] = "江东的小霸王",
    ["designer:shi_heg__sunce"] = "KayaK（韩旭）",
    ["illustrator:shi_heg__sunce"] = "木美人",

    ["~shi_heg__sunce"] = "内事不决问张昭，外事不决问周瑜……",
}

General:new(extension, "shi_heg__chenwudongxi", "wu", 4):addSkills{ "new_ld__duanxie","new_ld__fenming" }
Fk:loadTranslationTable{
    ["shi_heg__chenwudongxi"] = "陈武董袭",
    ["#shi_heg__chenwudongxi"] = "壮怀激烈",
    ["designer:shi_heg__chenwudongxi"] = "淬毒",
    ["illustrator:shi_heg__chenwudongxi"] = "地狱许",

    ["~shi_heg__chenwudongxi"] = "杀身卫主，死而无憾！",
}

local dongzhuo = General:new(extension, "shi_heg__dongzhuo", "qun", 4)
dongzhuo:addSkills{ "hengzheng","baoling" }
dongzhuo:addRelatedSkills{"benghuai"}
Fk:loadTranslationTable{
    ["shi_heg__dongzhuo"] = "董卓",
    ["#shi_heg__dongzhuo"] = "魔王",
    ["designer:shi_heg__dongzhuo"] = "KayaK（韩旭）",
    ["illustrator:shi_heg__dongzhuo"] = "巴萨小马",

    ["~shi_heg__dongzhuo"] = "为何人人……皆与我为敌？",
}

General:new(extension, "shi_heg__zhangren", "qun", 4):addSkills{ "chuanxin","fengshi" }
Fk:loadTranslationTable{
    ["shi_heg__zhangren"] = "张任",
    ["#shi_heg__zhangren"] = "索命神射",
    ["designer:shi_heg__zhangren"] = "淬毒",
    ["illustrator:shi_heg__zhangren"] = "DH",

    ["~shi_heg__zhangren"] = "本将军败于诸葛，无憾……",
}

local xunyou = General:new(extension, "bian_heg__xunyou", "wei", 3)
xunyou:addCompanions("st_heg__xunyu")
xunyou:addSkills{ "new_ld__qice","ld__zhiyu"}
Fk:loadTranslationTable{
    ["bian_heg__xunyou"] = "荀攸",
    ["#bian_heg__xunyou"] = "曹魏的谋主",
    ["designer:bian_heg__xunyou"] = "淬毒",
    ["illustrator:bian_heg__xunyou"] = "心中一凛",

    ["~bian_heg__xunyou"] = "主公，臣下……先行告退……",
}

local bianfuren = General:new(extension, "bian_heg__bianfuren", "wei", 3, 3, General.Female)
bianfuren:addCompanions("st_heg__caocao")
bianfuren:addSkills{ "new_ld__wanwei","ld__yuejian" }
Fk:loadTranslationTable{
    ["bian_heg__bianfuren"] = "卞夫人",
    ["#bian_heg__bianfuren"] = "奕世之雍容",
    ["illustrator:bian_heg__bianfuren"] = "雪君S",

    ["~bian_heg__bianfuren"] = "心肝涂地，惊愕断绝。",
}

General:new(extension, "bian_heg__shamoke", "shu", 4):addSkills{ "ld__jilis" }
Fk:loadTranslationTable{
    ["bian_heg__shamoke"] = "沙摩柯",
    ["#bian_heg__shamoke"] = "五溪蛮王",
    ["illustrator:bian_heg__shamoke"] = "LiuHeng",
    ["designer:bian_heg__shamoke"] = "韩旭",

    ["~bian_heg__shamoke"] = "五溪蛮夷，不可能输！",
}

General:new(extension, "bian_heg__masu", "shu", 3):addSkills{ "sanyao","new_ld__zhiman" }
Fk:loadTranslationTable{
    ["bian_heg__masu"] = "马谡",
    ["#bian_heg__masu"] = "帷幄经谋",
    ["designer:bian_heg__masu"] = "点点",
    ["illustrator:bian_heg__masu"] = "蚂蚁君",

    ["~bian_heg__masu"] = "败军之罪，万死难赎……" ,
}

local lingtong = General:new(extension, "bian_heg__lingtong", "wu", 4)
lingtong:addCompanions("st_heg__ganning")
lingtong:addSkills{ "xuanlve","yongjin" }
Fk:loadTranslationTable{
  ["bian_heg__lingtong"] = "凌统",
  ["#bian_heg__lingtong"] = "豪情烈胆",
  ["designer:bian_heg__lingtong"] = "韩旭",
  ["illustrator:bian_heg__lingtong"] = "F.源",

  ["~bian_heg__lingtong"] = "大丈夫，不惧死亡……",
}

General:new(extension, "bian_heg__lvfan", "wu", 3):addSkills{ "ld__diaodu","ld__diancai" }
Fk:loadTranslationTable{
    ["bian_heg__lvfan"] = "吕范",
    ["#bian_heg__lvfan"] = "忠笃亮直",
    ["designer:bian_heg__lvfan"] = "韩旭",
    ["illustrator:bian_heg__lvfan"] = "铭zmy",

    ["~bian_heg__lvfan"] = "闻主公欲授大司马之职，容臣不能……谢恩了……",
}

local zuoci = General:new(extension, "bian_heg__zuoci", "qun", 3)
zuoci:addCompanions("zhen_heg__yuji")
zuoci:addSkills{ "gzyg","gzjh" }
Fk:loadTranslationTable{
    ["bian_heg__zuoci"] = "左慈",
    ["#bian_heg__zuoci"] = "鬼影神道",
    ["illustrator:bian_heg__zuoci"] = "吕阳",

    ["~bian_heg__zuoci"] = "红尘看破，驾鹤仙升。",
}

local lijueguosi = General:new(extension, "bian_heg__lijueguosi", "qun", 4)
lijueguosi:addCompanions("st_heg__jiaxu")
lijueguosi:addSkills{"xiongsuan"}
Fk:loadTranslationTable{
  ["bian_heg__lijueguosi"] = "李傕郭汜",
  ["#bian_heg__lijueguosi"] = "犯祚倾祸",
  ["designer:bian_heg__lijueguosi"] = "千幻",
  ["illustrator:bian_heg__lijueguosi"] = "旭",

  ["~bian_heg__lijueguosi"] = "异心相争，兵败战损……",
}

local cuiyanmaojie = General:new(extension, "quan_heg__cuiyanmaojie", "wei", 3)
cuiyanmaojie:addCompanions("st_heg__caopi")
cuiyanmaojie:addSkills{ "new_ld__zhengbi","new_ld__fengying" }
Fk:loadTranslationTable{
    ["quan_heg__cuiyanmaojie"] = "崔琰毛玠",
    ["#quan_heg__cuiyanmaojie"] = "日出月盛",
    ["designer:quan_heg__cuiyanmaojie"] = "Virgopaladin（韩旭）",
    ["illustrator:quan_heg__cuiyanmaojie"] = "兴游",

    ["~quan_heg__cuiyanmaojie"] = "为世所痛惜，冤哉……",
}

local yujin = General:new(extension, "quan_heg__yujin", "wei", 4)
yujin:addCompanions("st_heg__xiahoudun")
yujin:addSkills{"ld__jieyue"}
Fk:loadTranslationTable{
  ["quan_heg__yujin"] = "于禁",
  ["#quan_heg__yujin"] = "讨暴坚垒",
  ["illustrator:quan_heg__yujin"] = "biou09",
  ["$ld__jieyue_quan_heg__yujin1"] = "不动如泰山！",
  ["$ld__jieyue_quan_heg__yujin2"] = "纪法严明，无懈可击。",

  ["~quan_heg__yujin"] = "呃，晚节不保……",
}

local wangping = General:new(extension, "quan_heg__wangping", "shu", 4)
wangping:addCompanions("zhen_heg__jiangwanfeiyi")
wangping:addSkills{ "ld__jianglue" }
Fk:loadTranslationTable{
    ["quan_heg__wangping"] = "王平",
    ["#quan_heg__wangping"] = "键闭剑门",
    ["illustrator:quan_heg__wangping"] = "zoo",

    ["~quan_heg__wangping"] = "无当飞军，也有困于深林之时……",
}

local fazheng = General:new(extension, "quan_heg__fazheng", "shu", 3)
fazheng:addCompanions("st_heg__liubei")
fazheng:addSkills{"ld__enyuan","new_ld__xuanhuo"}
fazheng:addRelatedSkills{"xuanhur__hs__wusheng", "xuanhur__hs__paoxiao", "xuanhur__hs__longdan","xuanhur__hs__tieqi", "xuanhur__hs__firebow", "xuanhur__hs__kuanggu"}
Fk:loadTranslationTable{
    ["quan_heg__fazheng"] = "法正",
    ["#quan_heg__fazheng"] = "蜀汉的辅翼",
    ["illustrator:quan_heg__fazheng"] = "黑白画谱",

    ["~quan_heg__fazheng"] = "汉室复兴，我，是看不到了……",
}

local lukang = General:new(extension, "quan_heg__lukang", "wu", 3, 3, General.Male)
lukang:addCompanions("st_heg__luxun")
lukang:addSkills{ "new_ld__zhuwei","ld__keshou" }
Fk:loadTranslationTable{
    ["quan_heg__lukang"] = "陆抗",
    ["#quan_heg__lukang"] = "孤柱扶厦",
    ["illustrator:quan_heg__lukang"] = "王立雄",

    ["$ld__keshou_quan_heg__lukang1"] = "仁以待民，自处不败之势。",
    ["$ld__keshou_quan_heg__lukang2"] = "宽济百姓，则得战前养备之机。",

    ["~quan_heg__lukang"] = "抗仅以君子之交待叔子，未有半分背国之念啊……",
}

local wuguotai = General:new(extension, "quan_heg__wuguotai", "wu", 3, 3, General.Female)
wuguotai:addCompanions("st_heg__sunjian")
wuguotai:addSkills{"ganlu","ld__buyi"}
Fk:loadTranslationTable{
    ["quan_heg__wuguotai"] = "吴国太",
    ["#quan_heg__wuguotai"] = "武烈皇后",
    ["illustrator:quan_heg__wuguotai"] = "李秀森",
    ["$ganlu_quan_heg__wuguotai1"] = "玄德实乃佳婿呀。",
    ["$ganlu_quan_heg__wuguotai2"] = "好一个郎才女貌，真是天作之合啊。",

    ["~quan_heg__wuguotai"] = "诸位卿家，还请尽力辅佐仲谋啊……",
}

local yuanshu = General:new(extension, "quan_heg__yuanshu", "qun", 4)
yuanshu:addCompanions("st_heg__jiling")
yuanshu:addSkills{ "ld__yongsi","ld__weidi" }
Fk:loadTranslationTable{
    ["quan_heg__yuanshu"] = "袁术",
    ["#quan_heg__yuanshu"] = "仲家帝",
    ["illustrator:quan_heg__yuanshu"] = "YanBai",
    ["$ld__yongsi_quan_heg__yuanshu1"] = "天下，即将尽归吾袁公路！",
    ["$ld__yongsi_quan_heg__yuanshu2"] = "朕今日雄踞淮南，明日便可一匡天下。",
    ["$ld__weidi_quan_heg__yuanshu1"] = "传国玉玺在手，朕语便是天言！",
    ["$ld__weidi_quan_heg__yuanshu2"] = "传朕旨意，诸部遵旨即可。",

    ["~quan_heg__yuanshu"] = "仲朝国祚，本应千秋万代，薪传不息……",
}

local zhangxiu = General:new(extension, "quan_heg__zhangxiu", "qun", 4)
zhangxiu:addCompanions("st_heg__jiaxu")
zhangxiu:addSkills{"ld__fudi","ld__congjian"}
Fk:loadTranslationTable{
  ["quan_heg__zhangxiu"] = "张绣",
  ["#quan_heg__zhangxiu"] = "北地枪王",
  ["designer:quan_heg__zhangxiu"] = "官方",
  ["illustrator:quan_heg__zhangxiu"] = "青岛磐蒲",

  ["~quan_heg__zhangxiu"] = "若失文和，吾将何归？",
}

--君主武将

local lordliubei = General:new(extension, "lord_heg__liubei", "shu", 4) --君刘备
lordliubei.hidden = true
H.lordGenerals["st_heg__liubei"] = "lord_heg__liubei"
lordliubei:addSkills{ "jizhao", "shouyue", "zhangwu"}
lordliubei:addRelatedSkill("ex__rende")
Fk:loadTranslationTable{
    ["lord_heg__liubei"] = "君刘备",
    ["#lord_heg__liubei"] = "龙横蜀汉",
    ["designer:lord_heg__liubei"] = "韩旭",
    ["illustrator:lord_heg__liubei"] = "LiuHeng",
    ["cv:lord_heg__liubei"] = "寂镜",

    ["$ex__rende_lord_heg__liubei1"] = "勿以恶小而为之，勿以善小而不为。",
    ["$ex__rende_lord_heg__liubei2"] = "君才十倍于丕，必能安国成事。",
    ["~lord_heg__liubei"] = "若嗣子可辅，辅之。如其不才，君可自取......",
}

local lordzhangjiao = General:new(extension, "lord_heg__zhangjiao", "qun", 4)--君张角
lordzhangjiao.hidden = true
H.lordGenerals["st_heg__zhangjiao"] = "lord_heg__zhangjiao"
lordzhangjiao:addSkills{ "wuxin", "hongfa", "wendao" }
Fk:loadTranslationTable{
    ["lord_heg__zhangjiao"] = "君张角",
    ["#lord_heg__zhangjiao"] = "时代的先驱",
    ["designer:lord_heg__zhangjiao"] = "韩旭",
    ["illustrator:lord_heg__zhangjiao"] = "青骑士",
    ["cv:lord_heg__zhangjiao"] = "寂镜",

    ["~lord_heg__zhangjiao"] = "天，真要灭我......",
}

local lordsunquan = General:new(extension, "lord_heg__sunquan", "wu", 4)--君孙权
lordsunquan.hidden = true
H.lordGenerals["st_heg__sunquan"] = "lord_heg__sunquan"
lordsunquan:addSkills{ "lianzi", "jiahe", "ld__jubao" }
lordsunquan:addRelatedSkills{ "ld__lordsunquan_yingzi", "ld__lordsunquan_haoshi", "ld__lordsunquan_shelie", "ld__lordsunquan_duoshi", "ld__lordsunquan_zhiheng"}
Fk:loadTranslationTable{
    ["lord_heg__sunquan"] = "君孙权",
    ["#lord_heg__sunquan"] = "虎踞江东",
    ["designer:lord_heg__sunquan"] = "韩旭",
    ["illustrator:lord_heg__sunquan"] = "瞌瞌一休",
    ["cv:lord_heg__sunquan"] = "寂镜",

    ["~lord_heg__sunquan"] = "朕的江山，要倒下了么......",
}

local lordcaocao = General:new(extension, "lord_heg__caocao", "wei", 4)--君曹操
lordcaocao.hidden = true
H.lordGenerals["st_heg__caocao"] = "lord_heg__caocao"
lordcaocao:addSkills{ "huibian", "jianan", "zongyu" }
lordcaocao:addRelatedSkills{ "jianan__ld__jieyue", "jianan__hs__tuxi", "jianan__qiaobian", "jianan__hs__duanliang", "jianan__xiaoguo"}
Fk:loadTranslationTable{
    ["lord_heg__caocao"] = "君曹操",
    ["#lord_heg__caocao"] = "凤舞九霄",
    ["illustrator:lord_heg__caocao"] = "波子",
    ["cv:lord_heg__caocao"] = "寂镜",

    ["~lord_heg__caocao"] = "神龟虽寿，犹有竟时；腾蛇乘雾，终为土灰。",
}

return extension